package org.jage.student.missevo.solution.reproduction;

import java.util.Collection;

import org.jage.agent.IAgent;
import org.jage.property.ClassPropertyContainer;
import org.jage.property.IPropertiesSet;
import org.jage.solution.ISolution;

public class CloneReproduction extends ClassPropertyContainer implements IReproduction {

	@Override
	public ISolution reproduce(Collection<IAgent> queryResult, IPropertiesSet agentProperties) {
		if (agentProperties == null) throw new IllegalArgumentException("agentProperties cannot be null");
		
		return (ISolution) agentProperties.getProperty("solution").getValue();
	}

}
